package com.foreknow.elm.dao;

import com.foreknow.elm.po.User;

public interface UserDao {
    /**
     * 根据用户编号与密码查询用户信息
     * @param userId
     * @param password
     * @return
     * @throws Exception
     */
    public User getUserByIdByPass(String userId,String password) throws Exception;

    /**
     * 根据用户编号查询用户表返回的行数
     * @param userId
     * @return
     * @throws Exception
     */
    public Integer getUserById(String userId) throws Exception;

    /**
     * 向用户表中添加一条记录
     * @param user
     * @return
     * @throws Exception
     */
    public Integer saveUser(User user) throws Exception;
}
